import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/styles/index.scss'
import App from './App.vue'
import menuRouter from './router/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 正确位置：在use之后，mount之前
app.use(createPinia())
app.use(menuRouter)

app.mount('#app')
